import Vue from 'vue'
import App from './App.vue'
import base from './common/css/base.css'
import VueResource from 'vue-resource'
import $ from 'jquery'
import goods from "./components/goods/goods.vue"
import VueRouter from 'vue-router'
import sifttow from "./components/sifttow/sifttow.vue"

Vue.use(VueResource)
Vue.use(VueRouter)

//定义路由
//const routes = [{
//	path: '/goods',
//	component: goods
//}]

// 创建一个路由器实例
// 并且配置路由规则
const router = new VueRouter({
	//active-class属性的默认值是router-link-active,所以如果没有设置，就会被渲染为这个class
	linkActiveClass: 'active', //默认的名字
	//mode: 'history',
	//base: __dirname,

	routes: [{
		path: '/App',
		component: App
	}, {
		path: '/goods',
		component: goods
	}, {
		path: '/',
		redirect:'/App'   // 改
	}]
})

new Vue({
	el: '#app',
	router,
//		render: h => h(App) 

})